/**
 * @file pt_utils.h
 * @brief 常用 & 通用的工具函数
 * @author yejiahao
 * @date 2023-11-08 03:51:48
 * 
 * @copyright Copyright (c) 2023 by 深圳市鹏天微智能科技有限公司, All Rights Reserved.
 */

#ifndef PT_UTILS_H
#define PT_UTILS_H

#include <stdint.h>

#ifdef PT_LOG_H
    #define utils_printf   raw_printf
#else
    #include <stdio.h>
    #define utils_printf   printf
#endif

#ifdef __cplusplus
extern "C" {
#endif

void pt_print_buffer(uint8_t *buffer, uint16_t size);
void pt_print_buffer_hex(uint8_t *buffer, uint16_t size);
void pt_print_bin_8(uint8_t data);
void pt_print_bin_32(uint32_t data);

#ifdef __cplusplus
}
#endif

#endif /* PT_UTILS_H */
